package com.bootdo.loa.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.loa.dao.TbMediaDao;
import com.bootdo.loa.domain.TbMediaDO;
import com.bootdo.loa.service.TbMediaService;



@Service
public class TbMediaServiceImpl implements TbMediaService {
	@Autowired
	private TbMediaDao tbMediaDao;
	
	@Override
	public TbMediaDO get(Integer id){
		return tbMediaDao.get(id);
	}
	
	@Override
	public List<TbMediaDO> list(Map<String, Object> map){
		return tbMediaDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return tbMediaDao.count(map);
	}
	
	@Override
	public int save(TbMediaDO tbMedia){
		return tbMediaDao.save(tbMedia);
	}
	
	@Override
	public int update(TbMediaDO tbMedia){
		return tbMediaDao.update(tbMedia);
	}
	
	@Override
	public int remove(Integer id){
		return tbMediaDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return tbMediaDao.batchRemove(ids);
	}
	
}
